package com.blog.web.bean;

import java.util.Date;

import org.hibernate.validator.constraints.NotBlank;

import com.blog.base.validator.Inspector;

public class Article {
    private Integer id;

    @Inspector(enumeration="0,1")
    private Integer articleType;
    
    @Inspector(minLength=1,maxLength=200)
    private String title;

    @Inspector(enumeration="0,1")
    private Integer visible;

    private Integer isDeleted;

    private Integer articleOrder;

    private String createDate;

    private String updateDate;

    private String content;
    
    private UnitAccess unitAccess;

	public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }


    public Integer getArticleType() {
		return articleType;
	}

	public void setArticleType(Integer articleType) {
		this.articleType = articleType;
	}

	public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title == null ? null : title.trim();
    }

    public Integer getVisible() {
        return visible;
    }

    public void setVisible(Integer visible) {
        this.visible = visible;
    }

    public Integer getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }


    public Integer getArticleOrder() {
		return articleOrder;
	}

	public void setArticleOrder(Integer articleOrder) {
		this.articleOrder = articleOrder;
	}

	public String getCreateDate() {
		return createDate;
	}

	public void setCreateDate(String createDate) {
		this.createDate = createDate;
	}

	public String getUpdateDate() {
		return updateDate;
	}

	public void setUpdateDate(String updateDate) {
		this.updateDate = updateDate;
	}

	public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }
    
    public UnitAccess getUnitAccess() {
		return unitAccess;
	}

	public void setUnitAccess(UnitAccess unitAccess) {
		this.unitAccess = unitAccess;
	}
}